const userStore = {
	namespaced: true,
	state() {
		return {

			userInfo: '' || uni.getStorageSync("userInfo"),


		}
	},
	mutations: {
		setUserStore(state, data) {
			state.userInfo = data.userInfo
			// uni.setStorageSync('userSig', data.userSign)
			uni.setStorageSync('userInfo', data.userInfo)
			uni.setStorageSync('token', data.accessToken)
		},

		clearUserStore(state) {
			state.userInfo = {}
			uni.removeStorageSync('userInfo')
			uni.removeStorageSync('token')
			// uni.removeStorageSync('userSig')
		},


	},
	actions: {



	},
}
export default userStore